<%-- 
    Document   : register
    Created on : 10-mars-2012, 16:54:40
    Author     : Pierre Buvé
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel=stylesheet type="text/css" href="css/main.css">
        <title>JSP Page</title>
    </head>
    <body>
        <%@include file="/WEB-INF/jsp/header.jsp" %>
        <c:if test="${not empty decobutton}">
            <div id="session"><form name="unlogbutton" method="POST" action="index.htm">
                    <input name="loadgame" type="submit" value ="<c:out value="${decobutton}" />"/>
                </form></div>
            </c:if>
        <h2>Page d'enregistrement</h2>
        
        <br />
        <form name="login" method="POST">
            <fieldset>
                <legend><b><u>Nouvel Utilisateur :</b></u> <font color="red"><b> <c:out value="${model.errormessage}" /> </b></font></legend>
                <label>Identifiant :</label>
                <input type="text" name="login" value="<c:out value="${model.user.username}" />"/>
                <hr />
                <label>Mot de passe :</label>
                <input type="text" name="password" />
                <hr />
                <label>Adresse e-mail :</label>
                <input type="text" name="email" value="<c:out value="${model.user.email}" />"/>
                <hr />
                <input value="Valider" type="submit"/>
            </fieldset>
        </form>
    </body>
</html>
